/*
 * @Description: 
 * @Author: 张文韬
 * @Date: 2022-09-06 14:46:31
 * @LastEditTime: 2024-07-16 14:16:29
 * @LastEditors: 张文韬
 * @Reference: 
 */
import { personCertificateTypes } from '/@/utils/constants'

export default [
  {
    type: 'selection',
    width: 50,
  },
  {
    type: 'index',
    label: '序号',
    width: 55,
  },
  {
    label: '被保险人',
    minWidth: 180,
    prop: 'name',
    format: (text, { row }) => `${text||''} ${row.namePinYin||''}` 
  },
  {
    label: '性别',
    minWidth: 60,
    prop: 'sexCode',
    format: (text) => text == 'F' ? '女' : '男'
  },
  {
    label: '证件类型',
    minWidth: 100,
    prop: 'certificateType',
    slotName: 'certificateType'
  },
  {
    label: '证件号码',
    minWidth: 165,
    prop: 'certificateNo'
  },
  {
    label: '出生日期',
    minWidth: 100,
    prop: 'birthday'
  },
  {
    label: '年龄',
    minWidth: 80,
    prop: 'age'
  },
  {
    label: '手机号码',
    minWidth: 120,
    prop: 'mobileTelephone'
  },
  {
    label: '与投保人关系',
    minWidth: 120,
    prop: 'relationshipWithApplicant',
    slotName: 'relationshipWithApplicant'
  },
  // {
  //   label: '受益',
  //   minWidth: 100,
  //   slotName: 'benefit'
  // },
  // {
  //   label: '保费',
  //   minWidth: 100,
  //   prop: 'premium'
  // },
  {
    label: '操作',
    fixed: 'right',
    width: 140,
    slotName: 'handleSlot'
  }
];
